package main

import (
	"github.com/gin-gonic/gin"
)

func main() {
	// 例⼦：
	r := gin.Default()
	r.GET("/user/:id", func(c *gin.Context) {
		//获取url参数id
		id := c.Param("id")
		c.JSON(200, gin.H{
			"message": id,
		})
	})

}
